package de.mafr.jsystest.ws.string;


import org.apache.commons.httpclient.HttpMethodBase;

import de.mafr.jsystest.ws.HttpUtils;
import de.mafr.jsystest.ws.Response;
import de.mafr.jsystest.ws.ResponseFactory;


public class StringResponseFactory implements ResponseFactory<String> {
	
	public Response<String> create(HttpMethodBase method) {
		return new Response<String>(method.getStatusCode(), HttpUtils.getBody(method));
	}
}